package cn.kgc.ffzw.day17.homework.Game;

import java.sql.SQLOutput;
import java.util.Scanner;

public class TestGame {

    public static void main(String[] args) {

        Game ga=new Hero();
        ga.att();
        Game ga1=new Neuts();
        ga1.att();
        Game ga2=new Soldier();
        ga2.att();




        System.out.println("请选择1，英雄发动攻击2.野怪发动攻击3.小兵发动攻击");
        int choose=new Scanner(System.in).nextInt();
        Game g=getNum(choose);
        g.att();

    }
    public static Game getNum(int choose){
        Game game=null;
        switch (choose){
            case 1:
                game=new Hero();
                break;
            case 2:
                game=new Neuts();
                break;
            case 3:
                game=new Soldier();

                break;
            default:
                System.out.println("输入错误，大笨蛋");
        }
        return game;

    }
}
